package breadbox.pastry;

import java.net.InetAddress;

import breadbox.pastry.routing.LeafSet;

/**
 * This interface defines all operations required by Pastry
 * to interact properly. (Proximity function?, deliver, leafupdates,
 * forward) 
 * @author Brian
 *
 */
public interface Application {
	int proximity(InetAddress ip, int port);
	
	void deliver( Message m );
	
	void newLeaf( LeafSet l );
	
	void forward( Message m );
}
